const path=require('path')
const fs=require('fs')
console.log(__dirname);
let file='./sub/readme.txt'
file=path.join(__dirname,file)
console.log(file);
fs.readFile('./readme.txt','utf8',(err,data)=>{
    if(err){
        console.log(err);
    }else{
         console.log(data);
    }
})